package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

     void addBed(Bed bed);

     Bed getById(Long id);

     void updateBed(Bed bed);


     int deleteById(Long id);

     Bed selectByNumber(@Param("bedNumber") String bedNumber);

     Bed selectById(Long id);
}

